﻿using SqlSugar;

namespace Zhp.Workflow.Entity
{
    [SugarTable("Elsa.WorkflowExecutionLogRecords")]
    public class Elsa_WorkflowExecutionLogRecord
    {
        [SugarColumn(IsPrimaryKey = true, Length = 450, ColumnDescription = "ID主键")]
        public string ID { get; set; }

        [SugarColumn(IsNullable = true, Length = 450, ColumnDescription = "租户ID")]
        public string TenantId { get; set; }

        [SugarColumn(IsNullable = false, Length = 450, ColumnDescription = "流程ID")]
        public string WorkflowInstanceId { get; set; }

        [SugarColumn(IsNullable = false, Length = 450, ColumnDescription = "活动类型")]
        public string ActivityType { get; set; }

        [SugarColumn(IsNullable = false, Length = 450, ColumnDescription = "活动ID")]
        public string ActivityId { get; set; }

        [SugarColumn(IsNullable = false, Length = 450, ColumnDescription = "时间戳")]
        public DateTimeOffset Timestamp { get; set; }

        [SugarColumn(IsNullable = true, Length = 450, ColumnDescription = "事件名称")]
        public string EventName { get; set; }

        [SugarColumn(IsNullable = true, Length = 450, ColumnDescription = "")]
        public string Message { get; set; }

        [SugarColumn(IsNullable = true, Length = 450, ColumnDescription = "")]
        public string Source { get; set; }

        [SugarColumn(IsNullable = true, Length = 450, ColumnDescription = "")]
        public string Data { get; set; }
    }
}
